<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加员工</title>
</head>
<body>
    <div>
        <form method="post" th:action="@{/emp}">
            <table border="1" width="500">
                <tr>
                    <th colspan="2">添加员工</th>
                </tr>
                <tr>
                    <td>姓名：</td>
                    <td><input type="text" name="empName"></td>
                </tr>
                <tr>
                    <td>年龄：</td>
                    <td><input type="number" name="empAge"></td>
                </tr>
                <tr>
                    <td>性别：</td>
                    <td>
                        男<input type="radio" checked value="男" name="empGender">
                        女<input type="radio" value="女" name="empGender">
                    </td>
                </tr>
                <tr>
                    <td>部门编号：</td>
                    <td>
                        <input type="number" name="deptId">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <a th:href="@{/emp}">返回</a>
                        <input type="submit" value="保存">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>